package operate

import (
	"gin-demo/common"
	"gin-demo/container"
	"gin-demo/dao/operate"
	"gin-demo/entity"
)

type RecordServiceImp struct {
}

func (c RecordServiceImp) List(pageRequest common.PageRequest) (*entity.RecordList, error) {

	recordDao := container.Get("recordDao").(operate.RecordDao)
	recordList, err := recordDao.List(pageRequest)
	if err != nil {
		return nil, err
	}
	return recordList, nil
}
